Tampon after Sex

Is it safe to put in a tampon after sex so the cum doesn't come out at night and mess up the bed? Or is there even enough cum to notice if it comes out at night?