If we could get to heaven by being “good” why would God allow His Son to die a humiliating, torturous death? If we could earn our way into heaven there would have been no reason for Christ to die on the cross.
His death was necessary...He paid a debt He didn’t owe because we owe a debt we cannot pay.