Hide a source from local recording?

Hello, is it possible to hide a source from local recording but leave it for a broadcast? I live stream gameplay and have a webcam source. The stream is also saved locally at the same time but I would like to prevent the webcam from showing on the local recording.