I would not switch medications especially blood pressure medications without first talking to your doctor.
Now if your doctor is the one having you make the switch then I would say yes that is perfectly ok, but if not call your MD and make sure to get there approval first