Can doing religious works or miracles save you?

No, Jesus will tell those who did works in His name but were never known by Him to depart from Him.

Watch the Teaching: Why Will Every Human Being Eventually Bow to Jesus?