No, you can't link Mega Man 6 to Mega Man 4 in the way the question suggests. These are separate games in the classic series and don't connect through any linking feature.
The classic Mega Man titles are primarily single-player experiences, and while later games in the franchise introduced various connectivity and crossover features, the early NES-era entries like these don't link together.
So each is enjoyed on its own, with no direct connection between Mega Man 4 and Mega Man 6.