Is this a good thing?

Hi! Recently me and my boyfriend had sex, and he finished inside of me. It was an accident, and I don’t want to be pregnant. The next day, my pants were wet all day, and I googled it and it said that maybe his semen was coming out? Is this so, and is this a good thing?