On the Islamic ruling on this issue, Dr. Rajab Abu Maleeh responded to a similar question as thus:

If both of you mutually agree on using a contraceptive for this purpose and during this period and this contraceptive is safe, does not result in infertility or barrenness and involves no harm, then you may use it as a temporary means of preventing pregnancy.