Yes, it was Onan who married his dead brother's wife, Tamar. His obligation was to give her children in lieu of his brother's passing but he didn't 'fulfill' the task all the way and God punished him for disobedience.
Question: Did Tamar ever has any children then?