Providing the battery is compatible with your laptop then yes. What is the make and model of laptop you have?
Also, do you keep your laptop plugged in constantly? Believe it or not doing this kills your battery faster and may cause irreversible damage to your laptop.