Ringworm won't look like a pimple- so I don't think the pimple is really associated, it's like just a pimple that will heal up.
If you haven't seen it clear up with the creams your doctor gave you, I'd recommend heading back to your doctor to have a second look- I'd lean more towards it's likely eczema if the cream you were given didn't clear it up.
Just wanted to check in and see how you were doing? Hope things are getting better!