Sure you can, with a sealant that is meant for stone!
There are catch all sealers that claim they can be used on both wood and masonary, however, they are usually very poor wood sealers that offer no protection from the sun.
In other words......use two different products here......