Canister A's update method calls canister B's query calculation method, can the query response be trusted?

hi, i have 2 canisters (A and B).
A have an update method which will change its state.
B have a query method which is just a calculation, think of it as utility method. B doesnt even have a state to begin with.
A’s update method will prepare the inputs to be calculated and call B’s query method to calculate them.

is it safe to trust the result from the calculation? even during intersubnet call?

Yes, when you call a query function from an update function the query will be run in replicated mode, meaning you can trust the result