Absolutely. See above for some suggested alternatives if you can't find elderflower cordial or would rather not use it. Simple water will work fine if you want a neutral flavour in your compote.