Yes, not fasting mainly affects your triglyceride level, which can rise quite a bit after a meal, while total cholesterol,
LDL and
HDL change much less. So the high reading you got could partly be from not fasting, and it isn't the most reliable number to act on yet.
Next Steps
Repeat the
lipid profile after a 10 to 12 hour fast, ideally only water during that time, so you get an accurate baseline. Please see a physician with both reports to decide if anything needs treatment.
Health Tips
Don't start any cholesterol medication based on this one non-fasting report alone.