Yes, but you still need a second comma (after before). Also, "before" seems completely redundant, if not incorrect, there. On reflection, it seems that "before" should be "earlier".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.