Yes, "remain yourself" is possible with that kind of meaning. "Change yourself, but remain yourself" is an interesting one, and to me feels either slightly awkward or like deliberate wordplay. The first "yourself" is a true verb object, yet the second "yourself" is not, and this disturbs the expected parallel structure.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.