It is possible to patent programs which, when run on a computer produce a 'technical effect'. However, if a program does not produce a technical effect when run on a computer it is unlikely to be patentable. A technical effect is generally an improvement in technology, and needs to be in an area of technology which is patentable.
Deciding whether or not a particular computer program is patentable is a complex issue, and advice from a Patent Agent may help to determine which is the most effective form of protection available. The technology transfer/commercialisation office of
your institution will be able to help and advise.