Yes you can, it’s a great way to use up soft or overripe tomatoes. Roughly chop them first before adding to the pan. You can peel the skin and strain out the seeds to get a more smooth, passata-like texture if you like (or leave them in to save on time). You’ll need to simmer the sauce for a bit longer to reduce more of the water content.