Yes..We can use either data element or data type for context attributes.
Ex: We can create attribute with data element MATNR and we can create attribute with data type CHAR10

Related questions