Both are OK. A comma helps the reader find the intended meaning quicker, particularly as the sentence gets longer. In speaking, a pause serves the same purpose.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.