As other people said, if you don't mind it taking much longer to cook, you can go from frozen to pan (or grill).
If you have the time, however, thaw it in the fridge, unless you bought the 'cook from frozen' ones.
I buy ground beef and let it thaw and then make the patties so I don't think my advice would benefit those who use pre-made patties.