Yes, the sentences are correct - if you understand what they mean.
No you can't substitute 'by; with 'until'. That changes the meaning.
Can you explain what you think your sentences mean? Then it will be more easy to explain why you can't make that substitution.
Student or Learner