Can we judge human behavior based on the morals of our time?
Since all humans have an understanding of rules of society, I think perhaps, but it's more nuanced. Since society has agreed on a set of rules that are enforced, breaking the contract can be seen as being immoral.
However, many people, rightfully so, disagree with the moral code that society imposes on us. And, of course, even today morals vary widely by region and culture.
It may be seen as highly immoral to eat beef in Hindu society. Yet, Muslims may be fine with it, but find it highly objectionable to eat pork. Western society in general will see neither of those as objectionable. There is no universal set of moral truths, and hence the conflict we have in today's world,
We try to enforce what the majorty of society thinks is right, but just because a majority have agreed upon a set of moral rules, doesn't make them right.
Is a Muslim woman who cheats on her husband because he is abusive and she is suicidal doing something immoral? Society says cheating is wrong, so does her relligion. But who are we to judge her? She broke the societal contract, but I would find it hard for me to call her immoral.