I don't think it was "part of his plan" as much as his rhetoric is more "trying to retrofit the current situation into my party's platform like it's something we planned on".
But I don't think anyone is actually buying that explanation. (Apart from people trying to attribute a nefarious motive/plan to him that he's not clever enough to have come up with)
The reality is, "gas prices" have always been something of a major talking point, and no president has ever like having high gas prices during their administration, and have always liked to tout low gas prices when they happen as evidence of "the economy doing better", and when gas prices are high, presidents will often try to rationalize them any way they can.
When you look at gas prices over the past 20 years, there have been a lot of ups and downs and there doesn't seem to be a pattern with regards to which party is in power.
For instance, there was a time under Obama that gas prices were 1.78 per gallon, and a time under Trump where it was 2.90 a gallon. If it were as simple as "democrats want to artificially make gas expensive on purpose to push a green agenda", Obama would've done that in 2009.
The reality is with gas prices, unless we get to a point where we rely only on ourselves for it and don't have any international partners, there's going to be a lot that's out of a president's control.
I'd go as far as saying state governors and legislatures have more of an impact on "what we pay at the pump" than a sitting president, as the gasoline taxes (one of the few aspects that are something within our control) are something dictated at the state level.
Gas Tax by State 2022 - Current State Diesel & Motor Fuel Tax Rates