I have done many frame swaps over the years. I went through all the following frames using parts from the previous frame....
2003 Heckler
2004 Azonic Saber
2008 Iron Horse MKIII
2010 Marin Mt Vision
2011 Turner 5-Spot
2012 Turner 5-Spot.
I needed to convert my rear hub for the last one. On some builds I needed a new headset, front derailleur, or shim for the dropper post. Might need a stem for fit. Of course new cables and housing.
In other words, all of these happened for not much expense beyond the cost of the frame.
However, things are not going to work like that this time around. New wheel sizes and hub standards make all my big ticket items pretty useless, so I’ll be going with a whole bike next time around..... which is why instead of continuing to get something new every other year I am still nursing my 2012 5-Spot along.
As far as if it makes sense for you, you need to look at the specifics of what will fit and what will not.
Also, what parts do you think you may want to upgrade? Even it everything fits (assuming you can convert your hubs*, which I would not count on), if you end up wanting a new fork next, then you would have probably been better off just buying a new bike with a better fork already on it.
*EDIT: Actually, if you are re-using your current fork, you don’t have to worry about the front hub.
The more I think about it, as long as we are talking about the same wheelsize, and if the fork and wheels are appropriate for the type of FS frame you get (e.g., you are not sticking XC wheels and fork on an AM frame), this might not be all that hard or expensive. You would need a new headset for a tapered head tube frame (or at least the bottom half) but that is not too big of a purchase. Might need a new bottom bracket. It mostly comes down the the compatibility (or convertability) of the rear hub.
Finances aside, building a bike is a very good way to learn most mechanic skills relevant to your bike.