Baby sleeping in bouncy chair

My baby is so fussy this morning, ive been up almost all night with him and every time I put him in his Moses basket he screams, he's gone to sleep in his bouncy chair, can I leave him there for an hour or two just so I can get sleep, haven't really slept in the past week, only an odd hour here and there