Technically yes. The very best garlic to use for infusing oils is fresh garlic cloves: whole, sliced, or minced. Jarred minced garlic is second best if you don't have fresh garlic cloves. In a pinch, you can use dried minced garlic in your olive oil, but it will need to soak long enough to become rehydrated and will not have the sweet edges of fresh garlic to take the flavor over the top.