Yes, it is perfectly safe to thaw and refreeze the food and does not affect the quality of the product.