Two blocks that change at the same time

I’m curious if it could be done that when changing the image on the carousel, also change the content that is in another block! Will this be possible?

I want to put a carousel and for each image that happens that also changes the information that is in another block!!