Yeah they are both DDR Ram.
The older kind of ram such as PC133 and whatnot will generally look different as well and you can tell between two incompatible sticks by looking at the notches.
The older sticks were simply SDRAM where those are DDR SDRAM
You can't put a DDR SDRAM stick into a computer that only accepts SDRAM and you can't put SDRAM into a computer that only accepts DDR.
But yeah like I said, those are two compatible sticks, and basically your computer is new enough that you really don't have to worry about incompatibilities as long as you get 184pin DDR RAM and your board probably wouldn't handle more than PC3200