Getting demoted

Denise
I'm currently working full time but i asked my manager if i could work part time a while because of my pregnancy and he said he'd have to demote me? Is that legal??