Yes of you are not carefully and do not supervise, I have a few 4000 grams females if they put a squeeze around your neck you will feel it and without a doubt it would have severe consequences for a child.
Common sense is you do not let a child put a snake around their neck, nor let them see you doing it regardless of the size of the animal.
Than there are the minor possible problem, bites etc.