Male dogs do not understand pregnancy the way humans do. They lack the cognitive ability to grasp the concept of a female carrying puppies.
However, a pregnant female may experience hormonal changes that subtly alter her scent. Physical changes, such as weight gain and a rounder abdomen, become more noticeable over time. Behavioral shifts, including increased affection or irritability, may also occur.
A male dog might detect that something is different, but he would not understand the reason. Importantly, male dogs do not exhibit special behaviors toward pregnant females and typically continue interacting with them as before.
There is no evidence that male dogs recognize the significance of pregnancy.