Erythritol can almost always be used in the same way as normal sugar. Even baking is possible with erythritol. You have to keep in mind though, that erythritol is only 70% as sweet as sugar and you might have to adjust the amount used if you want to follow a recipe made with sugar.