Can you sleep with a tampon on?

I hate pads lol. I usually sleep like 9 hours on the weekday and 11 hours on the weekends. I’ve heard of toxic shock syndrome so I never worn tampons when I sleep. I know some people who wear them overnight so I’m just curious. Thank you! :)