Yes you can, but be sure to leave the cloves unpeeled, since otherwise they can burn in the oven too quickly. Then they're easy to peel after being roasted to use as needed.