Yes.
In addition, if you get a J1 for prelim and then a J1 for residency, you still only have to leave the US for 2 years (not 4).
If you get a prelim on J1, then leave the US for 1 year, then get a residency on J1, well, I have no idea what happens then.