Yes, you can use the exclamation mark with any data type. However, it's most commonly used with variables that might have different values, such as strings, numbers, or objects.