NEC, Right or Wrong

I opened up a wall that needs repair and I’ve come to find that the previous owner had used Romex instead of BX to wire a couple of electrical outlets. Does anyone know if the use of romex is code in an old wood frame house or should I replace it all with BX?
TIA

By brownman |