Without knowing the specs of the laptop in question, the answer is maybe.
Depending on the laptop's tolerance for voltage variance, 19V is likely within the safe zone (plus or minus 5%, a typical tolerance, gives you a "safe" range between 17.575V and 19.425V).
The device will only draw as much current as it needs, so as long as the replacement charger has an amperage rating greater than or equal to the old charger, it should be fine.
However, even assuming both of those are OK, it's likely that if you run into issues, your laptop's manufacturer won't cover it under any warranty. It's also possible that the laptop will refuse to charge or only charge at a lower rate if it can't ID the charger (an OEM charger may have a chip in it that allow it to communicate with the laptop that the replacement won't support).