Question about retakes

Hi guys, If I retake a class, will it replace the non-pass grade on my transcript? Thanks!