ftm , kind of a goofy question

im 17 with a newborn . on the days my mom aint here ti watch after her while im in the shower can i just put her in the basinet and put both of them in the bathroom with me . close the door but not the shower curtains so i can still see her . or no because its going to start getting hot and foggy ?