Maybe if you can avoid stuff like alcohol (easy for most) but also you can avoid sleep deprivation - way harder with little to no maternal leave and forget about paternal leave here in the US.
If you (Royal you, not parent commenter) can live with yourself if a tragedy occurs on your watch while you are flaunting medical advice, then go ahead and risk it, but otherwise yes! Buy the bedside attached crib!