Is it okay for a guy to have a sleepover?

yeahh ofc well mabye not wen getting older but anyone can really