Yes, you can replace potato starch with flour in some cases. Flour can be a good substitute when you want to make a roux, when coating foods for frying, and when you need to thicken certain foods.