I'm not going to spoil the movie, so if you want to know what I'm talking about but haven't seen the movie, just go out and rent it.
It might be a good movie, I haven't seen it and I won't. Instead I would like to recommend the book(s) by Asimov. They were really good. The 3 laws are a set of priorities and were a kind of logic. These laws of Asimov were hinted at in 2001 when HAL goes insane because of conflicts in it's programming.
Well, Hindu's do worship God in their own way, as do Jews, Muslims, Mormons, etc. So yes, they can and in fact do, and have been for hundreds of years and in some cases thousands of years.