No. There's no idea of an intervening passage of time to trigger the use of by.
Will any homework be assigned by Friday?
This is OK. Here there is time between now, when you ask the question, and the future time, when homework might still be assigned -- maybe on Wednesday, maybe on Thursday, for example.