Can a query be DoSed by nn-returning function

I know that calling a non-returning method causes inability to upgrade the calling canister.

Can this happen with a query (or composite query) method?