Yes, you can cut off the affected portion and eat the rest of the tomato. The unaffected part is safe to consume.