took piercing out while its infected

is this okay to do? wasn't really thinking when I did it as I just wanted to calm down the pain. I got my ears pierced for the first time in june and have switched to new ones since then. haven't had any problems till today when my left earlobe starting hurting badly. so as my earlobe hasn't been infected before, I thought it was the right thing to take out the piercing and put cream on it. is this the right decision? its not new so it won't close up right? I'm kinda worried as its oozing puss