Can we use "if it weren't for" and "if it hadn't been for" interchangeably?

The difference between these two phrases is the same as any other two sentences: one in past tense, other in past perfect. I’ll give you two examples to show you the difference:

  1. Let’s say I’m regretting something right now: If it weren’t for the wrecked peasants, I could have a better life now.

  2. Suppose I’m talking about something in the past: If it hadn’t been for the wrecked peasants, I could have had a better life then.