afaik the answer is No.
Tesla have stated you cannot upgrade one model to another.
If you think about it, it is a complete minefield for Tesla to manage exchanging used parts of unknown condition, plus there are undoubtedly many other items than just the battery to switch out, plus I believe Tesla do consider protecting existing owners of higher performance models.
Sell and re-buy a higher spec model would be just as cost effective anyway.