I had laproscopic hysterectomy 4 weeks ago, I have developed some pain in right side of lower abdomine and is it due to hernia?

Unlikely. Entry ports are small hernia unlikely , may be you are forming adhesion's, see your gyn surgeon and will advise you.
Unlikely. Pain after surgery is likely from healing. Since you had laparoscopic surgery, hernia formation at the port insertion sites is rare. See your gynecologist for an examination.