Will killing ps -f stop piped grep from executing?

I have this question in a school exercise and can’t find an answer anywhere. The question reads: You have the command ‘ps -f | grep proc’. If the ps -f command is killed, will the grep proc part still execute. Could anyone explain this to me? Thanks!