The answer is it "depends " but certainly in long term it will be cost-effective. The one-time cost for headless development will be higher as compared to standard monolith development.