Dear Tetra,
you may connect the OSNR component before the fiber or before the receiver. Typically, it is connected before the receiver as the OSNR is a basic requirement to characterize the receiver.
you may refer to OptiSystem example library for guidance. Check the examples at the location C:\Users\USER NAME\Documents\OptiSystem 19.0 Samples\Advanced modulation systems\QAM systems\16 QAM
Regards,
Ahmad