I would think that it would be ok as long as google never saw the metarefresh but the link that themike537 posted offers a php version with less code and a more "friendly" 301 redirect.
If you are just getting this set up, use the php version.
Either way, MOST IMPORTANTLY, block the file / subdirectory or whatever in your robots.txt