It technically supports doing this, but doing so is very ill-advised because there are many deviations, known and unknown, between this library and the Bitcoin Core reference implementation. In a consensus based cryptocurrency such as Bitcoin it is critical that all parties are using the same rules to validate data, and alternative implementations are simply unable to guarantee they implement the same rules as Core.
^ This, thank you!
Also thank you for the distinction why LN can use different implementations but consensus code should not.