Yes, this is easily done as long as you have followed the steps necessary to prepare varnished wood for a coat of spray paint. You can achieve a decent bonding surface by sanding down the wood first and using an oil-based primer and spray paint.