I doubt if it generates the same queryid for the substituted queryparameter we have in pg_stat_statement.
Thanks,Raghvendra