Is this impossibe?

I’m trying to write a function that takes myMC variable to be the name of the movieclip. Is this impossible? Thanks

function moveToLocation(myMC) {
_root[myMC].attachMovie(myMC, myMC, getNextHighestDepth());
}