In a way yes, but being involved in operations does keep the troops trained and techniques used to fight these sorts of battles updated.
I think we have learned a lot over the last few decades related to combating terrorists in these environments.
I do not think it would be wise to pull everyone out, and then leave it like Obama did.
That sure didn’t work out so swell.
Assuming you are correct on some oblique interest of the US to be there, I contend those interests are best served by helping Assad gain total control over his entire country.
Thereby eliminating any terrorist breeding ground.