You can! Consider roasting the tomatoes first with a brush of olive oil and salt to help reduce the moisture and make sure your tart doesn't get too soggy.