Me and my boyfriend had unprotected sex and afterwards I had a brown discharge what does this mean?

Nothing. This may not mean anything at all. Without knowing more about you and the sexual practices in which you engage, and not examining you, impossible to say. But probably means very little. If it persists, go and be seen by a gynecologist.