Yes, schools can have karakia at assembly so long as the school is closed for instruction, doesn’t go for more than an hour at a time, and students can opt out.
Although teaching in state primary schools must not include religion, religious observance can go ahead when the school is closed for instruction. Depending on the circumstances, a school might be considered closed during an assembly.