When we scroll down the feed, we see a lot of things. The moment we see pretty pictures of somebody else, we start comparing ourselves. That's the quickest way to make you feel bad and that will decrease your self esteem and self confidence.
Yes, doing workout for the right reason is very important. Otherwise, you will give up and don't go back to the gym any more.