It's really not clear what you are asking. But yes, if an action in the past precedes another action that happened in a more recent past, like buying food, then yes: "I had bought some food previously, but then it all ran out, so now I've bought more food."