Yes, a boy and a girl with the same date of birth can marry, and there is no legal prohibition against it in most countries. Marriage is typically regulated by the laws of each country or state, and these laws generally focus on factors such as age, consent, and prohibited degrees of relationship (e.g., marrying close relatives like siblings, parents, or grandparents). However, having the same date of birth is not a factor that affects marriage legality.
While marrying someone with the same birth date might be an unusual coincidence, it is not a legal barrier to getting married. People can legally marry as long as they meet the legal requirements set by their country or state. These requirements may include being of a certain age (often 18 or older), obtaining necessary documentation, and adhering to any waiting periods or other regulations.
It's important to note that cultural and social factors might influence people's decisions to marry, and some individuals may choose to avoid certain types of coincidences or similarities in their relationships. However, from a legal perspective, having the same date of birth does not prevent a boy and a girl from marrying if they otherwise meet the legal requirements for marriage in their jurisdiction.