Yes, you can do it, in fact, some of the most popular beard dyes are hair dyes that people started using to dye their beards. Just make sure to do a patch test to see if your skin gets irritated.