If it was in the ceasefire agreement, I assume they can shoot them yes. There were leaflets dropped all over Gaza telling them not to go north. So they know. But then when they have Hamas telling them to ignore this and go north regardless...
If it's not in the ceasefire agreement but just an understanding, that might be different. I don't know.