If you don't have root, and sometimes even if you do, then you cannot be entirely sure. That's why hardware shutters and physical disconnects are a thing.
If you have root you still cannot turn on the camera without the physical light turning on, and I believe you’d need at least a kernel exploit to disable the screen indicator for the microphone.