Question about quiting race

If I started a 50 lap Goliath and decided to quit half way through would I keep skill points and XP I earned?. Let’s just say I may or may not be regretting my life decisions atm. XD