Hi,
Assuming they fit the appropriate context, both are fine.
Generally speaking, the difference between at night and by night is this:
At night - mainly denotes the time of darkness between one day and the next.
By night - mainly denotes the darkness which happens during the nighttime; in darkness; in the nighttime.