Can I purposely fail a class?

Title + I don't want a B, it will legit crush my hopes of a 3.8+ please help. I want to retake.