Ordinarily, no. Something non-objectionable should not constitute an offence, ordinarily. I used 'ordinarily' because of Section 354D IPC.
354D. Stalking (1) Any man who—
(i) follows a woman and contacts, or attempts to contact such woman to foster personal interaction repeatedly despite a clear indication of disinterest by such woman; or
(ii) monitors the use by a woman of the internet, email or any other form of electronic communication,
commits the offence of stalking;
354D does not talk about offensive or objectionable communication. Simply contact to foster personal interaction despite clear indication of disinterest by such women. So you better not do it. If you still insist on contacting strangers (on Facebook, is it? ) you better back off if she asks you not to contact. And the burden of proof is on the accused to establish that the contact was not stalking, your choice.