Technically yes, but a marker is more suitable.
With markers, you can write on wood and many other non-textile objects, but you cannot write on porous surfaces this type of marker.