Basically, yes. The horrible pullout from Afghanistan made him think the fracturing was still ongoing, and Putin likely couldn't wrap his head around how domestic and foreign policy are treated differently in the US, even if the divide between the two has been weakening as of late.