Technically, you can, yes. I haven't done it myself, so I'm not an expert. You just need a reliable way of keeping whole heads of garlic at about 140°F for a very long period of time, and well hydrated. There's plenty of information online about using a sous vide cooker, dehydrator, slow cooker, or rice cooker to do it.