I want to create a O-D cost matrix which will relate the origins and destinations by a transportation network layer and will not just connect by a straight line.
Can you give me any insight on this?
A quick search of the ArcGIS Pro Help uncovered the OD cost matrix analysis layer page:
An OD cost matrix analysis layer finds and measures the least-cost paths along the network from multiple origins to multiple destinations.