Yes, but if you edit 1 theme you should edit the other theme so the only difference is the variable you’re testing.
The 2 themes involved in a test are tracked by theme ID so the same 2 themes will swap throughout the duration of the test even if you rename a theme.
If a different / 3rd theme, the app will indicate a warning in the results showing that the test stats on that day may not be accurate.