Question

I was wondering say if your right side of ur chest hurt when u took a deep breath and you decided to just go to sleep and see if it would stop but then when u wake up the next day the pain was still there but then through the day the pain would suddenly stop and come back but then the next day it just stopped all together and I don’t feel it anymore. Should I still go to the doctor or no?