It’s OK to do calisthenics before bed if it doesn’t disrupt your sleep. Exercise can release endorphins and make it difficult to fall asleep immediately after (2), so if you have trouble sleeping after a workout, it’s best to do calisthenics earlier in the day.
Gentle stretching or yoga before bed can be beneficial for relaxation and improving sleep. Listen to your body and adjust your workouts accordingly to find what works best for you.