Yes, as long as it is used as a private measure to regulate the family size due to economic or health reasons.
As for consent to use it between husband and wife, according to Islamic law, the woman has full right to use birth control methods, even without the consent of her husband.
However, she cannot force her spouse to use a condom or practice the pull-out method if he does not want to.
Suggested for you: What Are Family Planning Methods? – Your Reproductive Health Options.