It's not necessary, but you should try to make it ahead. This way, garlic will have more time to flavor the butter. Anywhere from 30 minutes to overnight is a good time to marinate the butter