play sound by file name

is it possible to play(or get the reference of) a sound by sending the path/fileName as a parameter?