Matching pos tag

We can write the rule like,
token 1
token 2 is same as token 1

Can we do the same for pos tagging???
token 1 (postag = NN)
token 2 (same pos tag of token 1)