Yes. Queries can be used to modify server-side data. But according to the conventional method, it is the best practice to use mutation for any write operation.