I haven't tried this recipe with coke, but I suppose you could. I don't see any reason it wouldn't work.