Yes, \(5x\) and \(-9x\) are like terms because they both contain the same variable, \(x\), raised to the same power (which is 1 in this case). Like terms can be combined through addition or subtraction. In this case, you can combine them as follows:
\[ 5x - 9x = (5 - 9)x = -4x \]