Staying up for 24+ hours? Safe or not?

So since it's New Year's <a href="">Eve</a> we stayed out late it's now 1:20am and we have to wake up at 5:30 to go to church and volunteer but I'm thinking instead of sleeping for 3 hours staying up since I might sleep off the alarm. Is this dangerous for the baby? Can it potentially harm my 7 week baby for me to stay up for 24 or more hours at a time? I'm going to nap when I get back at about 1pm. Thanks gals and happy new year!
Update: Going to sleep thanks guys 😂 happy new year!