No for current network cables this won't be the case.
That said don't rule this out on future cables which contain tiny microchips like some of the Apple charging cables which have authenticator chips hidden in them. As time goes on these will have more features and more potential to be used in attacks. For now though you have nothing at all to worry about.
The following is a teardown of an Apple authenticator chip from a 3rd party adapter, the Apple OEM ones have a smaller form-factor but essentially the same chip. Note how small the actual chip is in the end of the video.