No. Search engines are smart enough to understand the query strings as well as the canonical URLs to rank pages with query strings.
However, it is always preferable to have friendly URLs than having ID-based query string URLs.