Hii Ayush,
Yes. Formula fields are calculated at the time of query, so they will calculate at runtime based on the currently saved values for that record. … Also note that sObject fields that contain formulas return the value of the field at the time the SOQL or SOSL query was issued.