That stuff is shady. At least just doing it and then immediately unfollowing.
Discussion
My friend did that on Twitter for his travel blog back in the day. He had it all figured out (lol) and would follow/unfollow in a strategic way in order to up his engagement. Always seemed so dumb to me.