Question: can example be used as an adjective?
Answer: You can use example this way that you used. It's called a noun adjunct - and it's likely the most common and idiomatic way to express what you want.