If the library is high level enough that it is for the communication protocol itself, of which there are lots, it will probably be fine. Even if you aren’t rolling your own code in this scenario, it would still be useful to learn because it may be hard to verify trustworthy sources of illegal software without reading the source code yourself.