If you want to change your position permanently, then yes, you'll have to take a pay cut.
If it's just until after you get back from maternity leave, then your pay is protected and you need to clarify that with HR. I would assume once you make sure they know that you will resume your full...