No, the only part where carriers can run arbitrary code is on the sim card, which can only run javacard applets.
>It can also transmit audio and video when the phone is not actually in a call.
Source? AFAIK both iPhones and Pixels have discrete modems, which means the baseband is separated from the main processor and communicates with it via some sort of bus. It's unclear how the baseband would be able to get arbitrary audio/video when it's isolated in this manner.