In my opinion, this is not true, because I have never been to a gym in my life and always trained at home, and when I worked hard, I had good results. Maybe you just need to find a person who will recommend which exercises are better to do.