Bathing a sleeping baby

I probably won’t do this but I just wanted to know could I give my sleeping baby a bath? I was planning to do it and while getting everything ready he fell to sleep😭 any risk?