It is completely fine to eat the peel of the cucumber. Some varieties do have a thicker, waxy skin which can sometimes be less pleasant to eat. If you have a cucumber with a thick skin, you may want to consider peeling it.