Can you use a heat brush on your beard after applying beard balm, or before?

After I use a heat brush on my beard, I notice some hairs are very wirey and stringing, but if I apply some type of oil or something, the straightness of the beard goes away.

Just trying to get an idea of if you should be applying heat before or after you put product in.

Thanks!