As the car key battery only supplies power to the remote opening system, there won’t be any effect on the immobiliser. The immobiliser in your car key communicates with a transponder chip in the key, which doesn’t require a battery.
If your car key seems to be draining batteries every few days or weeks, get the advice of a specialist as you may need a new car key fob. Remember, batteries should last for at least a year.