Python slqalchemy

A model has data A1
B model has data b1

b1.key1 is a foreign key, associated with the primary key of a1.id

is there a problem for me to delete A1 data directly now?
db.session.delete (A1)
db.session.commit ()

Menu