It’s ok to take pain medication before working out, but you may be tempted to push yourself too far. Be careful not to overdo the exercise, which could make an injury worse.