Depends if it was intentional or not, this from the regs.
“
It is illegal to wilfully foul hook a salmon. If you accidentally foul hook a salmon in the ocean, you can keep it. If you foul hook a salmon, wilfully or accidentally, in any lake or stream, including the tidal parts of coastal...