Question: how long can you keep a peanut butter and jelly sandwich in the fridge?
Answer: Jelly is good indefinitely refrigerated; so is bread; so is PB...so doing the prep does not create a health hazard. BTW...you can see many small shops that sell lots of pre-made/refrigerated sandwiches that have a 7 day shelf-life.