It really depends on what you need for fabrication tolerances in terms of OD and wall thickness, and design concerns related to heat transfer (wall thickness).
From a material standpoint, there is no problem because both material specifications are endorsed by ASME B&PV Code (Section I). The pipe specification will have additional requirements embedded for fabrication because pipe is primarily used external to the boiler for conveying fluids, whereas, tubing is used in heat transfer applications in the boiler setting.
ASME SA 335 is a material specification for seamless pipe, while SA 213 T22 material specification is for tubing in boilers and heat exchangers. I would suggest you carefully review both specifications and compare pipe versus tube tolerances in your application.