Percocets and weight loss

I was prescribed percocets and I am dropping weight like no tomorrow. I’m not mad about it but my whole life I worked out and tried to loose weight and couldn’t loose a lb but now on percocets I’ve lost almost 20 lbs in 6 weeks.

Is that normal?