Absolutely, you can set the timer up to have the pool warm at the times it is mostly used. Another way is to run your boiler 24/7, but utilise a pool cover to reduce gas use, depending on the type of cover your gas bill can drop substantially if you cover your pool at night etc.
The only issue...