If you're eating healthy, sure. But lifting and continuing to eat crap won't do
a dang thing for weight loss. It still comes down to burning more calories than you consume. If you eat healthy, you'll lose weight without going to the gym. Working out accelerates weight loss and makes you "look better."