yeah, that should work. the only thing i would be concerned about causing problems would be under the following sections:
# CORE SEARCH PATH OPTIONS
#
# CORE OUTPUT DIRECTORY OPTIONS
because of them pointing to folders in your actual mame installation...this may or may not cause problems, but you can always delete these sections out after you copy them over.