Yes, you can. For optimal texture, spread the fresh rice on a tray or baking sheet and let it cool completely. You can also chill it in the refrigerator for a few hours before frying. The important part is that your cooked rice doesn't contain too much moisture, as it would prevent it from frying and the grains would stick together.