Yes, male dogs can be frustrated when they're not allowed to mate. In fact, this frustration can be so intense that it leads to behavioral problems such as aggression and anxiety. If this becomes a problem, you might want to speak to a vet about neutering or other alternatives.