Absolutely. Also you really need to trust what your body is telling you. There is a difference between really injured and just a little hurt. A pulled muscle can turn into something worse in a hurry.
Sorry to hear you made that mistake but now you need to all you can to heal up.