If you put capital letters in the right place, yes, that sentence is punctuated correctly. Between the commas, you have a parenthetical element (a clause that can be removed without changing the meaning of the main clause).
http://grammar.ccc.commnet.edu/grammar/commas.htm
See #4.