Pregnancy question

I just went to bathroom and had a little piece of whitish tissue come out. Is this bad or normal. I don't have any pain. Just first time this has happened. I'm 18 weeks pregnant.