Looks that way - although I wouldn't rule out this having been a gambit in a longer plan. If not: back a bad bill, get beat - and hopefully learn from the mistake.
Trump devoted a huge amount of personal time along with others in the Administration to push this bill. He held several huge campaign-style rallies to advocate the passage of the bill. He is in charge and will be held responsible for the failure to pass the repeal and replacement of Obamacare, which remains in effect.