Of course. If it gets you into a sweat and gets your heartrate up, then go for it...
when you start losing weight/getting fitter, you should definitely add more like 10 minutes on the treadmill along with some weight lifting. (although, weight lifting won't immediately show a weight loss on the...