Automatically add Dataview snippet

Is it possible to automatically add a snippet to a particular note when I use it with a Dataview attribute ?

Example :

Say I add the line to any note
category:: [[Note 1]]

Then can a snippet like :

WHERE contains(category,[[Note 1]])

be automatically added to Note 1 someway ?