Not at all - SHTP has its own rules. I see nothing in the SHTP lifeline requirements that precludes attaching the stanchions to the hull:
4.07 The deck including head stay must be surrounded by a suitably strong enclosure - typically consisting of lifelines and pulpits - meeting the following requirements:
4.07.1 Lifelines must be uncoated stainless steel wire or Dyneema/Spectra line with spliced terminations. A knotted multipart lashing segment not to exceed 6” tying
lifelines to pulpits is allowed.
4.07.2 Maximum spacing between the bases of lifeline supports (e.g. stanchions) is 87”.
4.07.3 Boats 30’ and under must have at least one lifeline with 18” minimum height above deck, a maximum vertical gap of 18” (a taller enclosure requires second lifeline)
and a minimum diameter of 1/8”.
4.07.4 Boats over 30’ must have at least two lifelines with 24” minimum height above deck, maximum vertical gap of 15” and a minimum diameter of 5/32” for boats to 43’,
and 3/16” for boats over 43’.
4.07.5 Trimarans are exempted from the lifeline requirement where there is a trampoline outboard of the main hull, except that a lifeline must run from the top of a bow pulpit to
the forward crossbeam at the outboard edge of the bow net or foredeck. Catamarans with trampoline nets between the hulls are exempted from the lifeline requirement. All
catamarans are exempted from the need for pulpits and lifelines across the bow.
4.07.6 Bulwarks, solid rails, or any similar solid enclosure meet the lifeline requirement if of similar height.