Can I have 2 A records for the same domain
Yes you can.
It is called round-robin DNS, and the browser just chooses one of them randomly.
It is a well used method of getting cheap load balancing, but if one host goes down, users will still try to access it.