So sorry you're not feeling well.
Whether its right or wrong to go to a restaurant when you're ill may not be the issue, but whether or not you will feel well enough to enjoy the outing with friends and your husband. And, if you are contagious, consider if you are exposing your friends.
How you feel may need to be the gauge in determining factor.
Hope you feel better soon!!!