No. Anything you bring that is used for hygiene will be given up at receiving and the Marine Corps will provide you with what you will need. They do provide shaving cream.
If the cream is by prescription, then they'll check out whether you actually need it to survive boot camp, if you do, then they'll take what you brought with you and a military doctor will write a new script for you.