Generally yes its OK.
There is a risk if one battery
drops a cell that the good battery
will discharge into it and so both batteries
will be ruinined.
Adding some cheap
diodes to the leads will eliminate this risk, but will reduce the charging
voltage. Sometimes for long term storage
during the off season this is OK, or even desirable.
What kind of battery charger
are you planning to use?