Of course, as the protocol is a generic data transfer. And in the same way Bitcoin allows money that porn and spam can use, as they deserve and no money is any good that decides who can use it. But in neither situation does refusing to host or share porn or spam on behalf of others interfere with either of the two former points on TCP/IP or Bitcoin. Anyone can use TCP/IP without forcing someone else to save your porn. Anyone can use Bitcoin as money without forcing anyone else to store porn or share it with others.