Yes, This is known as a prepared statement. You compile a parametrized statement once, then execute it as many times as you like with different arguments.
Also, SQLite, unlike most other databases, is an embedded database which does everything in-process rather than invoking multiple processes.
I know nothing of SQLites's internals, but wouldnt it make more sense to parse the query once and then store a compiled version of the query for subsequent lookups? Like you might do with a regexp?