Both huh?
Yes, I believe both elements are necessary.
The sacrifice of Christ provides forgiveness of sin on condition of repentance. Repentance means change — changing from a life of sin to one of righteousness.
Throughout the Gospels, Jesus taught his followers to avoid sin, to shun the evil works of the flesh and to do works of righteousness and love.