Yes, it is absolutely legal to buy gold coins in India online or offline. People buy them as an investment and to balance out the risk profile of their portfolio. These coins can also be very useful in times of financial difficulties or emergencies. One can sell these coins for cash or take a gold loan against them later.