Both parties should be on the hook. Once you sign, that’s it.
I think most states have a brief “cooling off” period regarding buying cars.