The source for this decision is what you see behind the gap. Look before anything else, then choose who does the work. In law, a home warranty is a service contract, and whether a trade is needed can depend on what the contract names and on the rules in your state.
What the gap tells you
An old bead of caulk that has split or pulled away from the tub edge is often a surface job. Look at the tiles, the board behind them, and the floor at the base of the tub. Soft spots, stains that come back, a sour smell, or dark growth behind the caulk change the job. Stop there. Write what you see and mark the spots with painter's tape.
Owner task or trade task
Re-caulking a sound surface is a task many owners do with a tube, a blade, and a plan. Water or rot behind the wall is a trade task. Mold that spreads into the wall and any soft framing need a trade that can open the wall and check it. The choice depends on what you find, not on how quickly the job seems to go. Write a line for each task: who does it, why, and what you saw.
Before you hire a trade
Ask for a written scope that lists each step. Ask whether the work needs a permit under local rules. Ask who will check the floor and how they will report what they find. Check your state rules on who may do this kind of work. Where a state does not publish the rule, the state sheet says not published.
Before you do it yourself
Read the product label for the cure time, the surface prep, and the cleaning step. Keep the old caulk and a photo of the gap before you start. Check whether your contract names the tub or the surround at all. Write the result on your sheet before you open the tube.