Yes - but make sure you buy the right kind of RAM.
E.g. If you have PC2700, buy PC2700 as it will run at the lowest speed you have (i.e you'd be wasting money buying 3200 or higher). You can probably find a RAM selector by searching Google that will tell you what speed/type of RAM to buy for your specific model of desktop.