Is replication possible between different versions..

I have 2 instances A and B
Both on 8.0.5.2.1 right now

A is a master and site B has snapshots (replicated nightly/refresh)

I want to upgrade site A to 8.1.7....
Is it possible to still maintain the snapshot replication
with A on 8.1.7 and B on 8.0.5??

What steps I would need to take to maintain replication after upgrading A?

Please help