Yes take a look at what you have.
Our boat was demasted a few years ago. The manufacturer doesn't make masts anymore. The new mast and boom is a Selden.
Basically near as I can tell the specs of the old mast were provided, a tremendous number of through mast and through boom options were offered and explored. End fittings and so on were decided upon and the new stick was ordered and shipped.
If you are thinking to get a "used" mast from another boat then that's another matter.
The new mast, boom and rodkicker for our 27 foot boat was just at $10,000 USD. On top of that were new sails
at around $4,000. Not for the faint of heart.