As a neighbor and active participant to the destabilization of Syria, yes Turkey should shoulder the consequences. Those people have to return to their homes after the war and not wander in a hostile Europe where they can't integrate.
Arguably, at least NATO countries should shoulder some of those consequences as well. ISIS didn't just spring out of the ground.