No, it is not safe. They will chew it and ingesting that kind of material poses a serious risk to them
You can hide pellets in cardboard egg boxes, slit a cardboard toilet roll tube down its length (it must be slit so they can’t get their heads stuck inside) and stuff it with hay, hay in large boxes with doors cut in.
Those kinds of things are safe for them and encourage foraging.