Optocoupler and RF data

Yes - but a simple transistor would do quite as well

regards

Allan