Last name question..

🖤Mommy🖤 • ♥️Son-7/00♥️Daughter-9/04♥️Daughter-11/12♥️👼-9/15♥️Son- 8/16♥️Son- 3/18♥️👼- 4/19♥️👼- 5/19♥️ Son- 2/20♥️

I'm starting the process of divorcing my horrible husband. I want to give my son my maiden last name as I'm switching back to it during this divorce. Will the hospital allow me to give him a different last name than mine? The divorce will take longer than the time I have left in this pregnancy.