has anyone took cyclobenzaprine while pregnant?

I'm having a hard time sleeping during this pregnancy. I'm 36 weeks and my doctor just prescribed me cyclobenzaprine 5 mg and to only take one pill at night. I took it an hour ago and feel completely fine and almost wide awake. And still have my achey back pain. Anyone else took it or a diff kind of muscle relaxer during pregnancy?