Am I wrong for lying to him?

Ok so we had a miscarriage June 2015 and we have been trying since to conceive. Every time af shows he gets heartbroken and upset. He's gotten so upset that he finally told me to just get on birth control. Well I lied to him and told him I did. I only did that cause I know how upset he gets when we Hvnt conceived. I know that if I do get pregnant he would be so excited. Was I wrong to lie?