The genetics of the widow’s peak and how or if it is inherited is unclear. It is possible that if you have a widow’s peak, someone in your family has one as well.
There’s not enough research to conclude that a widow’s peak is the result of a single dominant gene. It may very well be that multiple genes are involved.