Sleeping with tampon?

Can you use a tampon while you're sleeping??