There is no specific feature to make miRC do this, no. I believe it to be possible through scripting, and there is an addon
here that does what you want (note, at the time of posting mircscripts.org is down due to attacks, so you'll need to wait).
This feature suggestion may interest you as to some reasons why there should not be a feature such as this.
Regards,