Could, yes. But the problem may not be in the query itself, but rather the lack of indexes. Indexes are used by the database software to speed up queries by knowing where to look up, instead of sequentially scanning all rows (which is a slow operation if you have many rows).
Another possibility that needs to be checked, is that you might be calling this server connect multiple times at the same time. This needs to be checked using your browser’s developer tools in the network tab, ensure after you click the auto-completion this server connect is only called once.