Yes! Tomatoes are actually from the same plant family as peppers which means they get along well when growing next to each other. Just as you would space 2 tomato plants by leaving an empty pod between each of them the same goes for a tomato plant next to a pepper plant. So if you have 3 pods in a row available to plant in keep the peppers or tomatoes on the outside. This will leave the middle space empty or you can take advantage of the gap by growing some quick to harvest herbs like chives.