The tiles placed on the tilemap will stay if you change the tileset. However, unless you remake the tileset with the exact same indices for each new tile, the tiles will be different tiles.
If you're really worried about losing your data, you can also copy the data for the tilemap directly from the .tscn file.