Hi,
Yes, you can, but it will require some consideration.
First of all, Debezium currently is a set of *source* connectors for Kafka connect, i.e. you'll need to add a sink connector which writes the change event data into a target database. Work in the Debezium community has started to create a JDBC sink connector as part of the Debezium project [1], but we don't have an ETA yet for when that will be available.
Second, you'll need to make sure to not propagate the same data change forth and back in an infinite loop. One way of doing so could for instance be an SMT which you apply to both sources and which adds a Kafka Connect header property representing the "origin" of a given change. In your sink connector, you'd then add that origin as an additional column to your data as you update it. The source connector on that side would then have to be set up (e.g. again using an SMT) to ignore all the changes which originate from replication, as opposed to actual data changes e.g. done by a business application.
Out of curiosity, what's the reasoning / use case for setting up a bi-directional replication stream?
Hth,
--Gunnar