Can you use Codesys SoftPLC with Factory IO through CIP or Profinet?

From what I read, you can use modbus or opc to commuinicate between Codesys softplc and factory IO. Since both products can support CIP and Profinet, can they use these two protocols to communicate?