Non shomrei shabbat friends bring kosher food on shabbat if they broke Shabbat to bring the food – are there circumstances under which we could eat it on shabbat?

For instance I know that historically there were communities that brought in Shabbat later than shkiah, consequently if they arrive  before tzait could that bedeivad make it ok to eat the food?