For tx rx??? Serial communication??Yes, this type of level shifter works well for I2C.
View attachment 39262
Those are transformer-based couplers which can be pretty noisy for EMI, especially at high speeds or the ones with internal oscillators. Fast opto and capacitive couplers are also available.For UART (RFx,Tx) level shifting, better to use ADUM1201.