yeah it can be used ironically for sure but usually jokes like that are funny because you see some truth in them like if someone says nigger in a joke about black people its like this guy is edgy or this guy is a racist