You can do both. I would use a heating pad set on low under her bedding or blankets. You can use ice but it won't be as effective as the heat.
What pain medication is she on?
If you can tell me what pain medication she is currently taking, I can help to figure out a course of action that might be helpful.