I'm an ML but no, states are more fundamental than capitalism. There were states prior to capitalism and they will likely exist after capitalism, but capitalism cannot exist without a state as the special apparatus of class oppression.
As an ML though you could argue that states are downstream of the economic circumstances that force their development