You can find out if cycling is what you want to do with a 40 dollar bike. Just make certain it fits you.
After almost thirty years of doing just work, eat, sleep, I got back into shape on a 46 pound bike. I even did a couple 100 milers on it. Got rid of it when I knew better what I needed. Less bike weight for the most part.