Yes, normally I'd say (in my case as a female):Mein Freund hat gesagt... My boyfriend said...
But: Ein Freund von mir hat gesagt...
A friend of mine said...
Das ist ein Freund vs. Das ist mein Freund (boyfriend).
So when talking about your girlfriend use the possesive pronoun, when talking about a friend use the indefinite article.