Yeah, if you set up your Gmail to use IMAP, it should sync properly in both directions (unlike POP). The only sticking point is sometimes it can be tricky getting all the folders synchronized. (For example, on my iPhone, I have two gmail accounts, but only 1 of them sees the “All Mail” folder). But yes, you can. And it should work just like you want.