Do you think my workout routine will work?

So, I am a little over weight. I need to lose like 40 lbs. I have a gym membership and I plan on running the treadmill for 30 minutess then the bicycle thing 30 minutes like every other day. Do you think it will make me lose weight and if so How long will it take?
Do you think my workout routine will work?
Post Opinion