how long is too long?

is it okay for me to leave a tampon in overnight? i feel like a tampon will be more comfortable while i’m sleeping. I’ve only worn a tampon once or twice and it wasn’t for long.