Pimple

I had a big pimple on my forehead and while examining it I accidentally popped it. Will this leave a scar? And what precautions should I make to make sure it doesn’t?