Is it okay to wear a tampon to bed?

Abbie
I always leak through at night and I just thought stuff it I'll wear a tampon, but I don't want any problems to happen