Different schools have different policies. But it is very typical for schools to accept the credit without recording the grade or applying the grade to a student’s GPA.
It’s also possible that your university will not even accept the credit. They can be finicky about that stuff.