The way that you’re asking it here seems like you are asking if God is handing out a punishment. As I understand it, that is not the way temporal punishment works. The “punishment” is actually a consequence of a particular sin or unhealthy attachments. For example, if you eat too much you’ll feel uncomfortable or maybe even something worse.