Only in certain areas. In many villages a person can be beaten up for defecating in open and in some cities it would lead to arrest. Despite all the perception "toilets"has been a priority in many cities and especially villages. If you travel in rural Mahrashtra you will see large boards that say "Open Defecation Free Village", such places will even have vigilante groups to enforce this law.