Does the earth have a gravitational pull on the sun?

yes. the earth as well as the other celestial bodies, all have their "pull" on the sun and each other.