Whether you get your emails through the Gmail app or some privacy respecting FOSS app. Google is the one receiving, analyzing and handling your emails. So it doesn’t matter much. The “shady” stuff already happened server side.
It is secure regardless of the app on your phone, but not private.