You don't have to, but you can! Read the instructions for your razor to make sure.
Cream or gel can help protect you from razor burn or bumps, but it can also damage certain types of razors.