Emergency can’t sleep

Can I take ropinirole for restless leg syndrome I’m pregnant but nothing else works