for example, I wanna teach machop mimic in emerald, so if I bring it to Pokemon pearl and breed it with ditto or something, can it learn mimic.
if so, would it also be possible to breed tutor moves like mimic via rage glitching ditto.
It varies based on whether that particular Tutor move is also an Egg Move for that Pokemon or not. Some moves, like Stealth Rock for Skarmory, are both an Egg Move and a Tutor Move. Others are not.