Are these sentences correct:

1-After the accident for two months I could not walk. I painted those paintings before I could walk.
2-After the accident for two months I could not walk. I painted those paintings before it was possible for me to walk.

Gratefully,
Navi.