Not necessarily. It is true that some types of malware can interfere with your device's camera. However, this error message is usually caused by a software or security issue rather than a virus or malware.