Is a computer program eligible for a copyright?

Yes; it may also be possible to patent.