No, a computer program doesn't know it exists. It can never "contemplate it's own existence," because to do so requires a thinking mind.
Something which a computer program will never have.
Don't confuse figurative language with reality.
When a program is processing information, say, on a...