Can I use macro lens to shot portrait photo?

Since I'm planning to buy a lens for taking portrait photo (i'm kinda looking for prime one).
with quite big aperture for out of focus background like f1.8

If I can shot portrait photo with macro lens i might contemplate prime macro lens or look for macro prime lens, since i can use it for portrait & macro, even if most of macro lenses' aperture are 2.8

thank you.