Yes
Note that it is your responsibility to manage the EEPROM address to which the variable is written such that adjacent variables do not overlap in EEPROM. Don't forget that an array holding a string of characters such as "password1" is actually one character longer than the visible characters to allow for the terminating zero of the string