Shaving your pubic hair will not prevent you catching pubic lice (crabs), and won’t get rid of them. You can treat yourself with an insecticidal lotion from your pharmacist or GP.
Source: Sex myth buster @ NHS Choices
Image by Ellaboratorio (Own work) [CC-BY-SA-3.0], via Wikimedia Commons